const moment = require('moment')
const { createLogs, toObtainLogs, timeSearchLogs } = require('../dao/logsDao')

//创建
module.exports.createLogs = async function (user) {
    return await createLogs(user)
}

//获取全部和搜索
module.exports.toObtainLogs = async function (data) {
    const get = await toObtainLogs(data)
    return {
        message: "获取成功",
        status: 1,
        get
    }
}

